import request from '@/utils/request'
// 查询终端数量情况
export const getzhongapi = () => request.get('pio-microservice-biz/pio/communication/terminal/count')
// 获取用户下拉菜单
export const getyonghuxialaapi = () => request.get('pio-microservice-biz/cbm/organization/company/list')
// 获取表格数据
export const gettablelistapi = params => request.get('pio-microservice-biz/pio/communication/terminal/list', { params })
// 获取规约下拉接口
export const getguiyueapi = () => request.get('dcuAndMeterAction/getDcuTypeList.htm')
// 导出
export const exportgaojinlistapi=data=>request.post('pio-microservice-biz/pio/communication/exportOperatingConditionList', data , { responseType: 'arraybuffer' })
// 查询终端下表计的数量
export const getbiaojilistapi = params => request.get('pio-microservice-biz/pio/communication/meter/count', { params })
//  查询工况页面表计信息列表
export const getgongkuangbjlistapi = params => request.get('pio-microservice-biz/pio/communication/meter/page', { params })
// 导出工况页面表计信息列表
export const exportbiaojilistapi = data => request.post('pio-microservice-biz/pio/communication/meter/excel', data, { responseType: 'arraybuffer' })
// 查询通讯规约下拉框数据
export const getguiyuexialaapi = () => request.get('/core/dictionary/combo-item/list?dictType=MeasureProtocols')
